{include file="include:header" /}
<body class="fixed-sidebar full-height-layout gray-bg" >
    <div class="row wrapper border-bottom white-bg page-heading">
        <div class="col-sm-4">
            <h2>权限设置</h2>
            <!-- 导航部分 -->
            <ol class="breadcrumb">
                <li><a href="{:url('admin/Index/home')}">主页</a></li>
                <li><a href="{:url('admin/Account/index')}">账户管理</a></li>
                <li><strong>权限设置</strong></li>
            </ol>
        </div>
        <div class="col-sm-8">
            <div class="title-action">
                <!-- 链接部分 -->
                <a href="{:url('admin/Account/role_list')}" class="btn btn-primary">账户列表</a>
            </div>
        </div>
    </div>
    <!-- 权限设置 -->
    <div class="wrapper wrapper-content  jurisdiction-add">
        <form method="get" class="valid-form form-horizontal">
            <div class="panel panel-default">
                <div class="panel-heading">权限设置</div>
                <div class="panel-body">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">角色：</label>
                        <div class="col-sm-4 form-inline">
                            <p class="form-control-static">
                                {$r_username?$r_username:'暂无角色'}
                            </p>
                &nbsp;&nbsp;&nbsp;&nbsp;<input  type="checkbox" class="input_hide" id="select" />全选
                        </div>
                    </div>
                  {volist name="list" id="v"}
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">{$v['am_mname']}</label>
                        <div class="col-sm-4 form-inline">
                            {volist name="v['son']" id="v1">
                            <label class="gray-label">{$v1['admin_function_id']}&nbsp;&nbsp;&nbsp;&nbsp;{$v1['af_fname']}&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" class="form-control" name="admin_function_id[]" value="{$v1['admin_function_id']}"  {volist name='default' id='de'}{if condition="$de['admin_function_id'] == $v1['admin_function_id']"}checked="checked"{/if} {/volist}/></label>
                              <br/>
                            {foreach name="v1['Grandson']" item="v2"}

                                  <label class="gray-label">{$v2['af_fname']}&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" class="form-control" name="admin_function_id[]" value="{$v2['admin_function_id']}"   {volist name='default' id='de_1'}{if condition="$de_1['admin_function_id'] == $v2['admin_function_id']"}checked="checked"{/if} {/volist}/></label>&nbsp;&nbsp;&nbsp;&nbsp;
                            {/foreach}

                            {/volist}
                        </div>
                    </div>
                    {/volist}
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-6">
                            <input type="hidden" name="admin_role_id" value="{$a_role}"/>
                            <a href="#" class="btn btn-danger submitj">确认提交</a>&nbsp;&nbsp;
                            <a class="mg-left-10 btn btn-white" href="#" alt="取消修改">取消</a>
                        </div>
                    </div>
                </div>
            </div>
            
        </form>
    </div>

</body>
</html>
{include file="include:js" /}